package com.itheima02;

import java.util.Calendar;

public class Test03 {
    public static void main(String[] args) {
        Calendar c = Calendar.getInstance();
        c.set(Calendar.YEAR,2018);
        c.set(Calendar.MONTH,1);
        c.set(Calendar.DATE,14);

        int year = c.get(Calendar.YEAR);
        int month = c.get(Calendar.MONTH);
        int date = c.get(Calendar.DATE);
        getWeek(c.get(Calendar.DAY_OF_WEEK));

    }

    public static char getWeek(int i) {
        char[] c={' ','日','一','二','三','四','五','六'};
        return c[i];
    }
}
